package com.woniuxy03;

import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-05-26 14:13
 */
public class Test05 {
    public static void main(String[] args) {
        //一个班5个同学，输入成绩，存入数组
        Scanner sc = new Scanner(System.in);
        int[] scores = new int[5];
        int sum=0;
        for (int i = 0; i < scores.length; i++) {
            System.out.println("输入第"+(i+1)+"个同学的成绩");
            scores[i]=sc.nextInt();
        }

        for (int i = 0; i < scores.length; i++) {
            sum+=scores[i];
        }
        //计算平均分
        System.out.println(sum);
    }
}
